import request from '@/utils/request'

// 查询用户历史运动数据
export function listHistory(query) {
  return request({
    url: '/miniapp/record/list',
    method: 'get',
    params: query
  })
}

// 查询今日运动数据
export function sportRecordList(query) {
  return request({
    url: '/miniapp/record/sportRecordList',
    method: 'get',
    params: query
  })
}